/**
 * Created by IntelliJ IDEA.
 * User: Tomek
 * Date: 10.06.12
 * Time: 15:24
 * To change this template use File | Settings | File Templates.
 */
package zakladki.AS3 {
public class PublicTransportSelectedData {

    private var _cityBus:int;
    private var _longDistanceBus:int;
    private var _miniBus:int;
    private var _tramSubway:int;
    private var _taxi:int;
    private var _suburbanTrain:int;
    private var _longDistanceTrain:int;

    private var _flightClass:int;
    private var _shortDistanceFlights:int;
    private var _longDistanceFlights:int;


    public function PublicTransportSelectedData(controls:PublicTransportControls){
        _cityBus = controls.cityBusSelector.value;
        _longDistanceBus = controls.longDistanceBusSelector.value;
        _miniBus = controls.miniBusSelector.value;
        _tramSubway = controls.tramSubwaySelector.value;
        _taxi = controls.taxiSelector.value;
        _suburbanTrain = controls.suburbanTrainSelector.value;
        _longDistanceTrain = controls.longDistanceBusSelector.value;

        _flightClass = controls.flightClassCombo.selectedItem.data;
        _shortDistanceFlights = controls.shortDistanceFlightsSelector.value;
        _longDistanceFlights = controls.longDistanceFlightsSelector.value;
    }

    public function get cityBus():int {
        return _cityBus;
    }

    public function set cityBus(value:int):void {
        _cityBus = value;
    }

    public function get longDistanceBus():int {
        return _longDistanceBus;
    }

    public function set longDistanceBus(value:int):void {
        _longDistanceBus = value;
    }

    public function get miniBus():int {
        return _miniBus;
    }

    public function set miniBus(value:int):void {
        _miniBus = value;
    }

    public function get tramSubway():int {
        return _tramSubway;
    }

    public function set tramSubway(value:int):void {
        _tramSubway = value;
    }

    public function get taxi():int {
        return _taxi;
    }

    public function set taxi(value:int):void {
        _taxi = value;
    }

    public function get suburbanTrain():int {
        return _suburbanTrain;
    }

    public function set suburbanTrain(value:int):void {
        _suburbanTrain = value;
    }

    public function get longDistanceTrain():int {
        return _longDistanceTrain;
    }

    public function set longDistanceTrain(value:int):void {
        _longDistanceTrain = value;
    }

    public function get flightClass():int {
        return _flightClass;
    }

    public function set flightClass(value:int):void {
        _flightClass = value;
    }

    public function get shortDistanceFlights():int {
        return _shortDistanceFlights;
    }

    public function set shortDistanceFlights(value:int):void {
        _shortDistanceFlights = value;
    }

    public function get longDistanceFlights():int {
        return _longDistanceFlights;
    }

    public function set longDistanceFlights(value:int):void {
        _longDistanceFlights = value;
    }
}
}
